using System.Collections;
using System.Collections.Generic;
using UnityEngine;
using UnityEngine.UI;
public class UIManager : MonoBehaviour
{
    public Text contentText;
    public Button connectButton;
    public Button sendButton;
    public InputField messageInputField;

    public static UIManager Instance {  get; private set; }
    private void Start()
    {
        Instance = this;
        connectButton.onClick.AddListener(() =>
        {
            NetworkManager.Connect();
        });
        sendButton.onClick.AddListener(() =>
        {
            NetworkManager.Send(messageInputField.text);
            messageInputField.text = "";
        });
    }

}
